package cn.edu.tju.elm.model.DTO;

import cn.edu.tju.core.model.Authority;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.util.HashSet;
import java.util.Set;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class UserDTO {
    private Long id;
    private String username;
    private Set<Authority> authorities = new HashSet<>();
    private String avatarUrl;
    private String bio;
    private LocalDate birthday;
}
